<?php
// include ezpdo runtime api
require_once('Ezpdo/ezpdo_runtime.php');

class Zen_Orm_Ezpdo extends Zen_Base
{
    protected $_Zen_Orm_Ezpdo = array('model' => '');

    public function fetch()
    {
        Zen::$model = Zen::$system."/app/Models/".$this->_config['model'];
        set_include_path(Zen::$model."/classes" .
                 PATH_SEPARATOR . get_include_path());

        // load config.xml (optional: not needed if it is in currrent dir)
        epLoadConfig(Zen::$model."/config.xml");
        return epManager::instance();
    }
}